<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get the canonicalized absolute pathname.</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.eio-readlink.html">eio_readlink</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.eio-rename.html">eio_rename</a></div>
 <div class="up"><a href="ref.eio.html">Eio 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.eio-realpath" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">eio_realpath</h1>
  <p class="verinfo">(PECL eio &gt;= 0.0.1dev)</p><p class="refpurpose"><span class="refname">eio_realpath</span> &mdash; <span class="dc-title">Get the canonicalized absolute pathname.</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.eio-realpath-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <span class="methodname"><strong>eio_realpath</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$path</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$pri</code></span>
   , <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code><span class="initializer"> = NULL</span></span>
  ] )</div>

  <p class="para rdfs-comment">
  <span class="function"><strong>eio_realpath()</strong></span> returns the canonicalized absolute
  pathname in <em><code class="parameter">result</code></em> argument of
  <em><code class="parameter">callback</code></em> function.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.eio-realpath-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">path</code></em></dt>

    <dd>

     <p class="para">
     Short pathname

     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">pri</code></em></dt>

    <dd>

     <p class="para">

     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">callback</code></em></dt>

    <dd>

     <p class="para">

     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">data</code></em></dt>

    <dd>

     <p class="para">

     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.eio-realpath-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.eio-realpath-examples">
  <h3 class="title">范例</h3>
  <div class="example" id="example-3511">
   <p><strong>Example #1 <span class="function"><strong>eio_realpath()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">getcwd</span><span style="color: #007700">());<br /><br />function&nbsp;</span><span style="color: #0000BB">my_realpath_allback</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">eio_realpath</span><span style="color: #007700">(</span><span style="color: #DD0000">"../"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">EIO_PRI_DEFAULT</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_realpath_allback"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">eio_event_loop</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>以上例程的输出类似于：</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
string(12) &quot;/home/ruslan&quot;
string(5) &quot;/home&quot;
</pre></div>
   </div>
  </div>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.eio-readlink.html">eio_readlink</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.eio-rename.html">eio_rename</a></div>
 <div class="up"><a href="ref.eio.html">Eio 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
